#ifndef _FDMS_LOG_H_
#define _FDMS_LOG_H_

#include "define.h"

#define LOG_FILE "log.txt"

enum log_type{
	INFO = 0,
	WARNING,
	ERROR
};

enum log_level{
	DEBUG = 0,
	EMERGENCY
};

void set_log_level(enum log_level level);
int_32 write_log(enum log_type type,char* buff); 
int_32 init_log();
int_32 inner_write_log(enum log_type type,char* buff);
int_32 uninit_log();

#endif